<template>
    <div class="title">
        <p class="pop">{{info.title}}</p>
        <div class="desc" v-html="info.content">
           
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            info:{},
            id:this.$route.params.id
        }
    },
    mounted(){
this.getGood()
    },
    methods:{
        getGood(){
            this.$axios.get('api/goods/getdesc/'+this.id).then(res=>{
                console.log(res)
                if(res.data.status===0){
                    this.info=res.data.message[0];
                      console.log(res)
                }
            })
        }
    }
}
</script>
<style lang="scss">
.title{
    .pop{
        font-size: 16px;
        color: #333;
        padding: 10px;
        text-align: center;
    }
    img{
        width: 100%;
    }
}
</style>
